﻿#pragma once

#include "../lib/src/game/MsgStruct.h"
#include <windows.h>
#include <atlimage.h>

class CGameManager;

class CGameView
{
public:
	CGameView();
	virtual ~CGameView(void);

public:
	void initDC();
	void onPaint();
	void reDraw();

	void drawCloseButton(HDC* pMemDC);
	void drawFrameBackgroundAndBorder(HDC* pMemDC);

	//debug
	void drawPkgCount(HDC* pMemDc);

	void refreshAtom(ST_NOTIFY_VIEW_ATOMS_CHANGED* c);
	void sub_refresh();

public:
	CImage		mImage[20];
	int			mCloseButtonState;
	HWND		mHwnd;
	HDC			mMemDC;
	HDC			mScreenDC;
	CGameManager*	mpGameManager;
	bool		mbDrawVerticalLine;
};


